class CreateShops < ActiveRecord::Migration
  def self.up
    create_table :shops, :force => true do |t|
      t.string :name, :null => false
      t.timestamps
    end
    
    execute 'ALTER TABLE shops ADD CONSTRAINT shops_uq_1 UNIQUE ("name")'
  end

  def self.down
    drop_table :shops
  end
end
